
#define FLT_MIN 1.175494351e-38

void SetClipDistance(int numClip, float dist)
{
	if (dist == 0.0)
		dist = FLT_MIN;

	if (numClip == 0)
		gl_ClipDistance[0] = dist;
	else if (numClip == 1)
		gl_ClipDistance[1] = dist;
	else if (numClip == 2)
		gl_ClipDistance[2] = dist;
	else if (numClip == 3)
		gl_ClipDistance[3] = dist;
	else if (numClip == 4)
		gl_ClipDistance[4] = dist;
	else if (numClip == 5)
		gl_ClipDistance[5] = dist;
}
